#coding:utf-8
import redis
#from jobs.csv_analysis import main_run

def doall():
    print('Manager is doing all jobs')
    connection_details = [{
        'host': 'localhost',
        'port': 6379,
        'db': 0,
    }]
    node=[]
    for conn in connection_details:
        if isinstance(conn, redis.StrictRedis):
            node = conn
        elif 'url' in conn:
            url = conn.pop('url')
            node = redis.StrictRedis.from_url(url, **conn)
        else:
            node = redis.StrictRedis(**conn)
    node.lpush("yyj:vbs111","111")
    node.lpush("yyj:vbs111","111")
    return True

if __name__ == '__main__':
    doall()
